



//
//  CartPayBarView.m
//  ZQLearn
//
//  Created by macfeel on 2019/5/15.
//  Copyright © 2019 macfeel. All rights reserved.
//

#import "CartPayBarView.h"

@implementation CartPayBarView

-(void)awakeFromNib{

    [super awakeFromNib];
//    self.backgroundColor = kBackgroundColor;
    self.payBtn.backgroundColor = kSystemtBlue;
    self.payBtn.layer.cornerRadius = 15.f;
    self.payBtn.layer.masksToBounds = YES;

}

-(void)setFrame:(CGRect)frame{
    
    frame.size.height = 60;
    [super setFrame:frame];
}

- (IBAction)tickBtnAction:(UIButton *)sender {
    self.tickBtn.selected = !self.tickBtn.selected;
    
    if ([_delegate respondsToSelector:@selector(tickAllButtonClicked:)]) {
        [_delegate performSelector:@selector(tickAllButtonClicked:) withObject:self];
    }
    
}

- (IBAction)payBtnAction:(UIButton *)sender {
    if ([_delegate respondsToSelector:@selector(payButtonClicked:)]) {
        [_delegate performSelector:@selector(payButtonClicked:) withObject:self];
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
